package com.hndfsj.common.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.hndfsj.common.dao.IByteResourcesDao;
import com.hndfsj.common.domain.ByteResources;
import com.hndfsj.common.service.IByteResourcesService;
import com.hndfsj.framework.dao.base.IBaseDao;
import com.hndfsj.framework.exceptions.ValidateParamException;
import com.hndfsj.framework.pager.PageRequest;
import com.hndfsj.framework.service.base.BaseServiceImpl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * TODO 
 * @copyright {@link www.hndfsj.com}
 * @author ZhengXingJian<Auto generate>
 * @version  2016-11-09 11:44:36
 * @see com.hndfsj.common.service.impl.ByteResources
 */
@Service("byteResourcesService")
public class ByteResourcesServiceImpl extends BaseServiceImpl<ByteResources,  java.lang.String > implements IByteResourcesService {

	static Logger log=LoggerFactory.getLogger(ByteResourcesServiceImpl.class);

	@Resource
	private IByteResourcesDao byteResourcesDao;
	
	@Override
	protected IBaseDao<ByteResources , java.lang.String> getBaseDao() {
		return this.byteResourcesDao;
	}
	public void validateEntity(ByteResources byteResources)throws ValidateParamException {
		//TODO write validate code throw new ValidateParamException
	}
	@Override
	public void delete(PageRequest pageRequest) {
		byteResourcesDao.delete(pageRequest);
	}
	
}
